home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Encarta World Atlas 1999 / Encarta World 99 Install Disk.iso / support / DirHTML / diagnose.dcr / 00042.ls < prev    next >
Encoding:
Text File  |  1998-09-01  |  468 b   |  21 lines

  1. property piMaxWidth
  2.  
  3. on beginSprite me
  4.   set piMaxWidth to the width of sprite 68
  5.   add(the actorList, me)
  6. end
  7.  
  8. on endSprite me
  9.   deleteOne(the actorList, me)
  10. end
  11.  
  12. on stepFrame me
  13.   set liSWApercent to integer(the percentPlayed of member "SWAaudio")
  14.   set liNewWidth to piMaxWidth * liSWApercent / 100
  15.   if not liNewWidth then
  16.     set liNewWidth to 1
  17.   end if
  18.   set the width of sprite the spriteNum of me to liNewWidth
  19.   sendSprite(70, #setDisplay, liSWApercent)
  20. end
  21.